package Test3;

public class Cylinder extends Pillar{
	private double r;
	private double higth;
	public Cylinder(double r,double higth) {
		this.r=r;
		this.higth=higth;
	}
	public double area() {
		return (3.14*r*r*2+2*3.14*r*higth);
	}
	public double volume() {
		return (3.14*r*r*higth);
	}
}
